package com.hrz.datasync.pojo.secondary;

import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @作 者: 侯建军
 * @日 期: 2018/11/05 10:23:25
 * @描 述: BbqAdZone 实体
 */
@Data
@Entity
@ToString
@Table(name ="bbq_taobao_adzone")
public class BbqAdZone  implements Serializable {
    @Id
    @Column(name = "id")
    private Long id;
    @Column(name="time_insert")
    private Date timeInsert;
    @Column(name="time_update")
    private Date timeUpdate;
    @Column(name="time_delete")
    private Date timeDelete;
    private Byte deleted;
    @Column(name="is_use")
    private Byte isUse;
    @Column(name="user_id")
    private Long userId;
    private Byte type;
    @Column(name="pid_valid")
    private Byte pidValid;
    @Column(name="pid_1")
    private Long pid1;
    @Column(name="pid_2")
    private Long pid2;
    @Column(name="pid_3")
    private Long pid3;
    @Column(name="adzone_name")
    private String adzoneName;
    @Column(name="use_time_start")
    private Date useTimeStart;
    @Column(name="use_time_end")
    private Date useTimeEnd;
    @Column(name="_self")
    private byte self;
    @Column(name="_sync")
    private Integer sync;       //0未同步，1已同步
    @Column(name="_orginId")
    private Long orginId;    //原始ID
}
